home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 October / Macworld (1998-10).dmg / Shareware World / Info / For Developers / MacZoop 1.8.4 / More Classes / File Classes / ZPrefsFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-07  |  841 b   |  44 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            MacZoop - "the framework for the rest of us"             
  5. *
  6. *
  7. *
  8. *            ZPrefsFile.h            -- the prefs file object
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *            © 1996, Graham Cox
  15. *
  16. *
  17. *
  18. *
  19. *************************************************************************************************/
  20.  
  21.  
  22. #pragma once
  23.  
  24. #ifndef __ZPREFSFILE__
  25. #define    __ZPREFSFILE__
  26.  
  27. #include    "ZResourceFile.h"
  28.  
  29.  
  30. class    ZPrefsFile    : public ZResourceFile
  31. {
  32. public:
  33.     ZPrefsFile( Str255 fName );
  34.     ZPrefsFile();
  35. };
  36.  
  37.  
  38. // that's all there is to this class- it will work like any resource file, but
  39. // the constructor ensures that the file is located in the current prefs folder. If you use the
  40. // default constructor, the prefs file will match that of the app with "prefs" appended.
  41.  
  42. #define        kPrefsFileType        'pref'
  43.  
  44. #endif